evaluating expressions with variables